import request from '@/utils/request'


// 楼栋列表
export function getBuildList(data) {
  return request({
    url: '/balancedView/getBuildList',
    method: 'post',
    data: data
  })
}

// 查询单元住户列表
export function getUnitHousehold(data) {
  return request({
    url: '/balancedView/getUnitHousehold',
    method: 'post',
    data: data
  })
}


// 住户基本数据-热量表数据
export function getHouseholdHeatData(data) {
  return request({
    url: '/balancedView/getHouseholdHeatData',
    method: 'post',
    data: data
  })
}


// 住户基本数据
export function getHouseholdInf(data) {
  return request({
    url: `/balancedView/getHouseholdInf?householdId=${data.householdId}`,
    method: 'get',
  })
}

// 住户设备信息
export function getHouseholdEquipment(data) {
  return request({
    url: '/balancedView/getHouseholdEquipment',
    method: 'post',
    data: data
  })
}

// 室温
export function updateTemperature(data) {
  return request({
    url: `/balancedView/updateTemperature?householdId=${data.householdId}`,
    method: 'get'
  })
}

// 室温
export function LineChart(data) {
  return request({
    url: `/balancedView/LineChart`,
    method: 'post',
    data: data
  })
}
